package com.ymatou.iapi.livebuyer.service;

import com.ymatou.iapi.livebuyer.parameter.LiveRoomInfo;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*查询直播回放Call
*FreeMaker Template自动生成代码
*/
public class QueryLiveReplayCall extends YmatouBaseCall{
	private static String opurl ="api/QueryLiveReplay";
	
	public QueryLiveReplayCall() {
		super(EnvSetup.getSystemUrl("livebuyer_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	public LiveRoomInfo getLiveRoomInfo()
    {
		LiveRoomInfo data = null;
        try {
            data = (LiveRoomInfo) FormatUtil.GSONToObject(getString("data"), LiveRoomInfo.class);

        } catch (Exception e) {
            e.printStackTrace();
        }
        return data;
    }
}